@echo off
setlocal

rem 设置加密密钥环境变量
set JASYPT_ENCRYPTOR_PASSWORD=soc-web-2024

rem 设置Java运行环境（如果需要）
rem set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_xxx

rem 设置项目配置
set ACTIVE_PROFILE=dev
set JVM_OPTS=-Xms512m -Xmx1024m
set DEBUG_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

rem 启动应用
echo Starting application with encryption key...
java %JVM_OPTS% %DEBUG_OPTS% ^
    -Dspring.profiles.active=%ACTIVE_PROFILE% ^
    -Djasypt.encryptor.password=%JASYPT_ENCRYPTOR_PASSWORD% ^
    -jar soc-admin/target/soc-admin.jar

pause
